preventDefault

public abstract void preventDefault()

Informs the browser that if the event is not explicitly handled, its default action should not be performed.

For example, if you invoke this method for the event of the CLICK type, dispatching this event to the checkbox element as the event currentTarget will not toggle this checkbox.

Throws

if the event is closed